﻿$(function () {
    $(".headerR li:first").addClass("active");
    $(".bodyL input[type=hidden]").val("");
})
function doLoad(pageIndex) {
    var quanID = $("input[id*=hidQHID]").val();
    var mucGiaID = $("input[id*=hidMucGiaID]").val();
    var lstCatID = "";
    var orderBy = "";

    $(".bodyL input[type=hidden][group=order]").each(function () {
        var order = $(this).val();
        if (order != "")
            orderBy += order + ",";
    })
    $(".bodyL input[type=hidden][group=phanloai]").each(function () {
        var catID = $(this).val();
        if (catID != "")
            lstCatID += catID + ",";
    })
    $(".b175x200").html("");
    $("#loading").show();
    $.get("/template/danhmucnhaquanhuyen.aspx", { quanHuyenID: quanID, mucGiaID: mucGiaID, page: pageIndex, lstCatID: lstCatID, orderBy: orderBy }, function (data) {
        $("#loading").hide();
        $(".b175x200").html(data);
    });
    $(".b175x200").ajaxComplete(function () {
        if ($(".boxss").size() == 0)
            $(".b175x200").html("<br/><b>Không có kết quả phù hợp</b><br/><br/>");
    })

}